package com.bz.xtcx.manager.utils;

import java.util.Date;

public class ResCodeUtil {
    /** 唯一数值种子. */
    private static long NL = System.currentTimeMillis();

    /**
     *
     * @param type
     * @return
     */
    public synchronized static String uniqueResCode(String type) {
        long l = System.currentTimeMillis();
        while (l == NL) {
            l = System.currentTimeMillis();
        }
        NL = l;
        return type + WzDateUtil.dt2Str(new Date(NL), WzDateUtil.DT_FMT_12);
    }
}
